import Vue from 'vue'
import Router from 'vue-router'
import Welcome from '@/components/Welcome'
import GoodsList from '@/components/goods/GoodsList'
import AddGoods from '@/components/goods/AddGoods'

import AddressList from '@/components/address/AddressList'
import AddAddress from '@/components/address/AddAddress'

import UserList from '@/components/user/UserList'
import AddUser from '@/components/user/AddUser'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'welcome',
      component: Welcome
    },
    {
      path: '/1-1',
      name: 'goodsList',
      component: GoodsList
    },
    {
      path: '/1-2',
      name: 'addGoods',
      component: AddGoods
    },
    {
      path: '/2-1',
      name: 'addressList',
      component: AddressList
    },
    {
      path: '/2-2',
      name: 'addAddress',
      component: AddAddress
    },
    {
      path: '/3-1',
      name: 'userList',
      component: UserList
    },
    {
      path: '/3-2',
      name: 'addUser',
      component: AddUser
    }
  ]
})
